package com.rong.raft.rpc.protocol;

import java.io.Serializable;

public class VoteRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long currTerm;

	private String remoteId;

	private String candidateId;

	public long getCurrTerm() {
		return currTerm;
	}

	public void setCurrTerm(long currTerm) {
		this.currTerm = currTerm;
	}

	public String getRemoteId() {
		return remoteId;
	}

	public void setRemoteId(String remoteId) {
		this.remoteId = remoteId;
	}

	public String getCandidateId() {
		return candidateId;
	}

	public void setCandidateId(String candidateId) {
		this.candidateId = candidateId;
	}

	@Override
	public String toString() {
		return "VoteRequest [currTerm=" + currTerm + ", remoteId=" + remoteId + ", candidateId=" + candidateId + "]";
	}

}
